package com.songcha.library_business.ui.activity

import android.content.res.Configuration
import android.content.res.Resources
import androidx.databinding.ViewDataBinding
import com.songcha.library_base.mvvm.base.BaseMvvmActivity
import com.songcha.library_base.mvvm.base.BaseRefreshMvvmActivity
import com.songcha.library_base.mvvm.base.BaseRefreshViewModel
import com.songcha.library_base.mvvm.base.BaseRepository
import com.songcha.library_base.mvvm.base.BaseViewModel

abstract class BaseRefreshFontScaleMvvmActivity<VM: BaseRefreshViewModel<out BaseRepository, out Any>,DB: ViewDataBinding>:
    BaseRefreshMvvmActivity<VM, DB>(){
    /*override fun getResources(): Resources {
        val res = super.getResources()
        val newConfig = Configuration()
        newConfig.setToDefaults() //set to default
        newConfig.fontScale = GlobalFontScaleHolder.getFontScale()
        res.updateConfiguration(newConfig, res.displayMetrics)
        return res
    }*/
}